package com.ys.entity.hr;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="THR_VatApplyDetail", catalog="Id")
public class ThrVatApplyDetail extends BaseEntity<ThrVatApplyDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="tinyint")
	private Integer type;
	@YsField(nameDataBase="VatNo", nameJava="vatNo", typeDataBase="varchar")
	private String vatNo;
	@YsField(nameDataBase="LastDateBegin", nameJava="lastDateBegin", typeDataBase="char")
	private String lastDateBegin;
	@YsField(nameDataBase="LastDateEnd", nameJava="lastDateEnd", typeDataBase="char")
	private String lastDateEnd;
	@YsField(nameDataBase="CurrentDateBegin", nameJava="currentDateBegin", typeDataBase="char")
	private String currentDateBegin;
	@YsField(nameDataBase="CurrentDateEnd", nameJava="currentDateEnd", typeDataBase="char")
	private String currentDateEnd;
	@YsField(nameDataBase="ApplyFile", nameJava="applyFile", typeDataBase="varchar")
	private String applyFile;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="ApplyReply", nameJava="applyReply", typeDataBase="varchar")
	private String applyReply;
	@YsField(nameDataBase="CurrencyCode", nameJava="currencyCode", typeDataBase="varchar")
	private String currencyCode;
	@YsField(nameDataBase="TaxAmount", nameJava="taxAmount", typeDataBase="decimal")
	private BigDecimal taxAmount;
	@YsField(nameDataBase="VatPaymentAccountCode", nameJava="vatPaymentAccountCode", typeDataBase="varchar")
	private String vatPaymentAccountCode;
	@YsField(nameDataBase="StatePay", nameJava="statePay", typeDataBase="tinyint")
	private Integer statePay;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public ThrVatApplyDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public ThrVatApplyDetail setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public ThrVatApplyDetail setType(Integer type) {
		this.type = type;
		return this;
	}
	public String getVatNo() {
		return vatNo;
	}
	public ThrVatApplyDetail setVatNo(String vatNo) {
		this.vatNo = vatNo;
		return this;
	}
	public String getLastDateBegin() {
		return lastDateBegin;
	}
	public ThrVatApplyDetail setLastDateBegin(String lastDateBegin) {
		this.lastDateBegin = lastDateBegin;
		return this;
	}
	public String getLastDateEnd() {
		return lastDateEnd;
	}
	public ThrVatApplyDetail setLastDateEnd(String lastDateEnd) {
		this.lastDateEnd = lastDateEnd;
		return this;
	}
	public String getCurrentDateBegin() {
		return currentDateBegin;
	}
	public ThrVatApplyDetail setCurrentDateBegin(String currentDateBegin) {
		this.currentDateBegin = currentDateBegin;
		return this;
	}
	public String getCurrentDateEnd() {
		return currentDateEnd;
	}
	public ThrVatApplyDetail setCurrentDateEnd(String currentDateEnd) {
		this.currentDateEnd = currentDateEnd;
		return this;
	}
	public String getApplyFile() {
		return applyFile;
	}
	public ThrVatApplyDetail setApplyFile(String applyFile) {
		this.applyFile = applyFile;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public ThrVatApplyDetail setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getApplyReply() {
		return applyReply;
	}
	public ThrVatApplyDetail setApplyReply(String applyReply) {
		this.applyReply = applyReply;
		return this;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public ThrVatApplyDetail setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
		return this;
	}
	public BigDecimal getTaxAmount() {
		return taxAmount;
	}
	public ThrVatApplyDetail setTaxAmount(BigDecimal taxAmount) {
		this.taxAmount = taxAmount;
		return this;
	}
	public String getVatPaymentAccountCode() {
		return vatPaymentAccountCode;
	}
	public ThrVatApplyDetail setVatPaymentAccountCode(String vatPaymentAccountCode) {
		this.vatPaymentAccountCode = vatPaymentAccountCode;
		return this;
	}
	public Integer getStatePay() {
		return statePay;
	}
	public ThrVatApplyDetail setStatePay(Integer statePay) {
		this.statePay = statePay;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public ThrVatApplyDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public ThrVatApplyDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public ThrVatApplyDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static ThrVatApplyDetail thrVatApplyDetail(
		String pbid,
		Integer type,
		String vatNo,
		String lastDateBegin,
		String lastDateEnd,
		String currentDateBegin,
		String currentDateEnd,
		String applyFile,
		String remark,
		String applyReply,
		String currencyCode,
		BigDecimal taxAmount,
		String vatPaymentAccountCode,
		Integer statePay,
		Integer status
			) {
		ThrVatApplyDetail entity = new ThrVatApplyDetail();
		entity.setPbid(pbid);
		entity.setType(type);
		entity.setVatNo(vatNo);
		entity.setLastDateBegin(lastDateBegin);
		entity.setLastDateEnd(lastDateEnd);
		entity.setCurrentDateBegin(currentDateBegin);
		entity.setCurrentDateEnd(currentDateEnd);
		entity.setApplyFile(applyFile);
		entity.setRemark(remark);
		entity.setApplyReply(applyReply);
		entity.setCurrencyCode(currencyCode);
		entity.setTaxAmount(taxAmount);
		entity.setVatPaymentAccountCode(vatPaymentAccountCode);
		entity.setStatePay(statePay);
		entity.setStatus(status);
		return entity;
	}
}